package com.ruili.test.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MySampleJob {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Scheduled(cron = "*/5 * * * * ?")
    protected void executeInternal() {
        logger.info("测试定时任务执行");
    }
}
